package com.woniuxy.service;

import com.woniuxy.pojo.CustLost;
import com.woniuxy.util.DataGridView;
import com.woniuxy.pojo.Customer;
import com.woniuxy.vo.CustLostVo;
import com.woniuxy.vo.CustomerVo;

import java.util.List;

public interface CustomerService {
    //查询所有流失客户(有分页)
    public DataGridView selectAll(CustLostVo custLostVo);
    //根据条件查询客户
    public DataGridView selectBycondition(CustLostVo custLostVo);
    //对流失客户的状态和暂缓措施进行更改
    public void updateBycondition(CustLost custLost);

    /**
     * 通过客户id查询客户
     */
    public Customer selectByid(String id);
    /**
     * 查询所有客户
     */
    public List<Customer> selectAllCustomer();

    //对确认流失客户的状态和流失原因进行更改
    public void updateConfirmStatus(CustLost custLost);

    /**
     * 组合分页查询
     * @param customerVo
     * @return
     */
    public DataGridView selectAllCustomers(CustomerVo customerVo);
    //public List<Customer> selectCustomersByConditon(Customer customer);
    public boolean addCustomer(Customer customer);
    /**
     * 通过用户编号查询用户
     * @param custNo
     * @return
     */
    public Customer selectCustomerByCustNo(String custNo);

    /**
     * 删除用户
     * @param custNo
     */
    public void deleteCustomerByCustNo(String custNo);

    /**
     * 批量删除用户
     * @param custNos
     */
    public void removeBatchCustomer(String[] custNos);

    /**
     * 更新用户
     * @param customer
     */
    public void updateCustomer(Customer customer);

    public DataGridView selectAllWillLostCustomer(CustomerVo customerVo);
    public List<Customer> selectAllWillLostCustomer1();
    //改变FLAG状态
    public void updateCustFlag(String orderCustNo);
    //新增流失
    public void insertLost(String custNo);
    //删除
    public  void deleteLost(CustLost custLost);
}
